<lv-tabs [lvType]="'card'" [lvTabBarExtraContent]="extraTpl" [(lvActiveIndex)]="index" [lvClosable]="true"
  (lvTabRemove)="removeTab($event)">
  <lv-tab *ngFor="let tab of tabs" [lvId]="tab.id" [lvTitle]="tab.name">
    This is content "{{tab.name}}"
  </lv-tab>

  <ng-template #extraTpl>
    <span style="display: inline-block; cursor: pointer;" (click)="addTab()"><i lv-icon='lv-icon-create'></i> 添加标签</span>
  </ng-template>
</lv-tabs>
